<!-- ���嵥ҳ��ҳ
searchFormId����ѯ����form id.
pBean:���ؽ�� 
 -->
<#macro pagination searchFormId pBean>
<div class="pagination pagination-right">
   <#if pBean.totalPageCount gte 1>
	<ul>
	 	<#if pBean.page = 1>  
			<li class="disabled"><a href="#">&laquo;</a> 
		<#else> 
			<li><a href="#" onclick="mainFrame.addContainer('${pBean.pageUrl}&page=${pBean.page-1}&pageSize=${pBean.pageSize}','${searchFormId}')">&laquo;</a>
		</#if> 
		<#list 1..pBean.totalPageCount as i> 
			<#if (10 >= i) >
				<#if pBean.page = i>  
					<li class="active">
				<#else>  
					<li>
				</#if> 
				<a href="#"
				onclick="mainFrame.addContainer('${pBean.pageUrl}&page=${i}&pageSize=${pBean.pageSize}','${searchFormId}')">${i}</a>
				</li> 
			</#if>
		</#list>   
		<#if pBean.totalPageCount == pBean.page>  
			<li class="disabled"><a href="#">&raquo;</a></li>
		<#else>  
			<li><a
				href="#" onclick="mainFrame.addContainer('${pBean.pageUrl}&page=${pBean.page+1}&pageSize=${pBean.pageSize}','${searchFormId}')">&raquo;</a>
			</li>
		</#if>  
	</ul>
	</#if>
</div>
</#macro>

<!-- ����ֲ���ҳ
searchFormId����ѯ����form id.
pBean:���ؽ��
areaId:��ʾ��ҳ������id,һ��ָ��div id. 
 -->

 <#macro areaapagination searchFormId pBean areaId>
<div class="pagination pagination-right">
   <#if pBean.totalPageCount gte 1>
	<ul>
	 	<#if pBean.page = '1'>  
			<li class="disabled"><a href="#">&laquo;</a> 
		<#else> 
			<li><a href="#" onclick="mainFrame.addArea('${pBean.pageUrl}&page=${pBean.page-1}&pageSize=${pBean.pageSize}','${areaId}','${searchFormId}')">&laquo;</a>
		</#if> 
		<#list 1..pBean.totalPageCount as i> 
			<#if (10 >= i) >
				<#if pBean.page = i>  
					<li class="active">
				<#else>  
					<li>
				</#if> 
				<a href="#"
				onclick="mainFrame.addArea('${pBean.pageUrl}&page=${i}&pageSize=${pBean.pageSize}','${areaId}','${searchFormId}')">${i}</a>
				</li> 
			</#if>
		</#list>   
		<#if pBean.totalPageCount == pBean.page>  
			<li class="disabled"><a href="#">&raquo;</a></li>
		<#else>  
			<li><a
				href="#" onclick="mainFrame.addArea('${pBean.pageUrl}&page=${pBean.page+1}&pageSize=${pBean.pageSize}','${areaId}','${searchFormId}')">&raquo;</a>
			</li>
		</#if>  
	</ul>
	</#if>
</div>
</#macro>